def foo
    bar [:a, :b, :c]
    a
    b
    c
end

I would like a, b, and c to be local variables with values 1, 2, 3
(positions of :a, :b, :c). Is there some implementation of
    def bar (symbol_list)
        symbol_list.each_with_index { |s, i|
            ???
        }
    end
that will do this?