ruby print strings code example Example 1: ruby print puts "hello world" Example 2: ruby print string puts "Hello world"