Switch function arguments

How to switch two arguments of a function.

Input

function testFunction (foo, bar) {
}

Output

function testFunction (bar, foo) {
}