abort("Message goes here")
See: How to create an exit message
A direct mapping of PHP's die() in Ruby would be Kernel::exit()
die()