["Two", "Birds", "In", "Hand"].each_with_index.map { |element, index| "#{element}: #{index}" } # => ["Two: 0", "Birds: 1", "In: 2", "Hand: 3"]