You can't access these variables because they are defined within a functional closure. The only way you could do it is if you made a global reference to them outside your function's scope.
var foo, bar;
$(document).ready(function(){
foo = 0;
bar = 3;
});