Try [`each_with_index`](http://www.ruby-doc.org/core-1.9.3/Enumerable.html#method-i-each_with_index) or [`zip`ing the two arrays together](http://www.ruby-doc.org/core-1.9.3/Enumerable.html#method-i-zip) and iterating over that.