File CSV Nomor Baris Saat Ini Ruby

CSV.foreach( "data.csv", encoding: "UTF-8" ).with_index do |row, row_number|
  puts row_number
end
Terrible Tapir