You can use the Query Properties panel for that (without opening the Query Editor), selecting the local variable you want to use as parameter. A new parameter/argument with the same name and datatype will be created.

Note that, at least in versions <= 4.2, variable's description is not copyed to the new parameter.