Ruby methods can accept parameters and return values explicitly or implicitly.
def add(a, b) return a + b end sum = add(3, 5) puts sum
If return is omitted, Ruby returns the last evaluated expression automatically.
return