You can define a method with default arguments using the \\ syntax. The default arguments are used when the argument is not provided.

def hello(name \\ "Unknown" ) do
  # name value is "Unknown" when name argument not provided
  "Hello #{name}"
end