The other answers here are incorrect as jQuery's css() method does not support 3 parameters and they will cause your bgPosY value to be ignored completely (and defaulted to 50%). I'm not actually sure how one of them received multiple upvotes...
You have two options here:
String Concatenation
You can concatenate your two variables into one string by using the + symbol:
.css({ backgroundPosition: bgPosX + "px " + byPosY + "px" })
Note how I've removed the comma between px and bgPosY and added a space to separate the two: "px ".
Setting Individual Properties
Alternatively you can just set the individual backgroundPositionX and backgroundPositionY properties:
(Edit: as Blazemonger has pointed out in this comment, these individual properties aren't supported in Firefox, so if you wish to support Firefox you should use the first option instead).
.css({
backgroundPositionX: bgPosX,
backgroundPositionY: bgPosY
})
Worth noting that I'm using object notation here rather than using strings, simply because I find this to be neater. You can stick to using "background-position" for the first example, and use "background-position-x" and "background-position-y" for the second example if you'd prefer.