Edit in JSFiddle

var hoge = (function(x) {
  console.debug(x);
  return x * x;
})(10);

console.debug(hoge);