Is there a way to write a function equivalent to

f(a, b) = a*x + b*y

where a, b are local variables to the function and x, y, the built in current-point variables?

Thus f(3, 5) would return 3*x + 5*y, with x, y having whatever their currents values are.