Create a Ruby program to implement lexicographical sorting.
["ruby", "go", "java", "python"]
def lexicographical_sort(arr)
  arr.sort_by { |word| word.downcase }
end

sorted_arr = lexicographical_sort(["ruby", "go", "java", "python"])

puts sorted_arr