Meaningless question without more information. You could have a moderate-heat bar with a large mass putting out the same amount of heat as a hotter bar of lower mass, and they would have different temperatures.
If this is a homework problem, you need to show the exact question and show your own attempt at a solution.