常量不能在方法中定義

def say_hi
  MESSAGE = "Hello"
  puts MESSAGE
end

上面的程式碼導致錯誤:SyntaxError: (irb):2: dynamic constant assignment。