Edit in JSFiddle

'use strict';
function foo(arg){    
    arguments[0] = 'bar'
    document.write(arg); //affiche bar
}
foo('foo');