In the application I'm working on, someone else on the team wrote some code to populate cells in Excel like this:
sheet[1, 4] = "This is text"
sheet[NAMED_CELL] = "This is text"
NAMED_CELL = 1, 4
You can use the "splat" operator to destructure an array of values into individual arguments:
x = [1,4] cells[*x] = "This is text" # identical to cells[1,4]
The syntax you're trying to use,
x = 1,4 cannot work. You cannot store two values in a variable without some kind of container such as an array, hash or class.