Instead of passing variables[0] as the name of an argument, you can pass a dictionary as an argument of subs method:
sage: R.<x,y> = PolynomialRing(QQ,2)