def hello(name="Ruby") print("Hello, ", name, ".\n") end hello() # 引数を省略して呼び出す hello("Newbie") # 引数を指定して呼び出す