常量不能在方法中定义

def say_hi
  MESSAGE = "Hello"
  puts MESSAGE
end

上面的代码导致错误:SyntaxError: (irb):2: dynamic constant assignment。