ruby puts code example Example 1: puts ruby example puts "This is used to write something" Example 2: ruby how to print puts "string" p "string"