ruby script puts code example Example 1: ruby print string puts "Hello world" Example 2: puts ruby example puts "This is used to write something"