Method Ruby

def repeat( word="Hello! ", times=3 )
 puts word * times
end
repeat # => Hello! Hello! Hello!
repeat( "Goodbye! ", 5 ) # => Goodbye! Goodbye! Goodbye! Goodbye! Goodbye!