If what you want to show up in the log is: "hello" then do as Björn says. However if you want to output the logic in your function to the firebug console you can do like this:
$(document).ready(function(){
var clickFunction = function(){
var str = "hello";
console.log(clickFunction);
};
$("#dreport").click(clickFunction);
});
This will show up in the firebug console as "function()" and if you click on it you will be taken to the function code in the source. You can also name the click function itself to e.g. "foo", to make it show up as "foo()" in firebug, like this:
var clickFunction = function foo(){
var str = "hello";
console.log(clickFunction);
};
Of course you can also use firebug's built in profiler in the console. Just click on profile, then click the element you want to profile, and then click profile again. This will output all function calls triggered when you clicked on your element.