The shortest and fastest solution is using Array#zip:
values = [5, 7, 8, 1]
values.zip # => [[5], [7], [8], [1]]
Another cute way is using transpose:
[values].transpose # => [[5], [7], [8], [1]]
The most intuitive way is probably what @Thom suggests:
values.map{|e| [e] }