Planck's constant, Boltzmann constant and Hawking Temperature The Hawking temperature of a Schwarzschild black hole is given in SI units as
$$T_{H}=\frac{\hbar c^3}{8 \pi G k_{B} M},$$
where $k_{B}$ is the Boltzmann constant. I would like to know how $\hbar$ and $k_{B}$ show up in the temperature. I mean where in the original derivation by Hawking do these constants show up?
I have looked into the original paper by Hawking, "Particle Creation by Black Holes". There he begins the calculation by writing down the massless scalar wave equation in curved background
$$ \frac{1}{\sqrt{-g}}\partial_{\mu} \left(\sqrt{-g}\,g^{\mu\nu} \partial_{\nu} \phi \right)=0.$$
Now as far as I can understand Hawking temperature shows up in the exponent when the modes $\sim\phi$ are traced from the surface of collapsing body to the future infinity. Alternative calculations without invoking the collapse geometry suggest modes tunnel through the horizon. So at first I thought $\hbar$ naturally shows because from quantum mechanics we have $\phi \sim e^{\frac{i}{\hbar}S}$. But what is bothering me here is that above wave equation does not have any $\hbar$ in it. In fact such wave equation comes from a Lagrangian of the form
$$ I\left[\phi\right] = \int \left[\frac{1}{2}g^{\mu\nu}\partial_\mu\phi\partial_\nu\phi  \right]\sqrt{-g} d^4x,$$
where $\hbar$ does not show up. And I am not sure whether such Lagrangian should come with a $\hbar$ based on dimensional analysis.
My second source of confusion is related to the Boltzmann constant. Again, I have no idea how and where $k_{B}$ emerges in the derivation. Without the notion of temperature, $k_{B}$ seems unrelated to such calculations which involve wave equations, Bogoliubov transformations etc...
 A: You are correct that the action he used does not contain $\hbar$ in it. After all, it is a classical action which describes simply a wave equation in curved spacetime. There is no problem in considering these sorts of phenomena classically and, in principle, there is no reason for $\hbar$ appear anywhere in computations involving the wave equation.
Nevertheless, Hawking uses the wave equation as the classical equation of motion for a quantum field, which means he does not treat the field as a real function, but rather as an operator. This operator must satisfy commutation relations which do involve $\hbar$, even though (as far as I remember) Hawking uses units with $\hbar = 1$. The fact that the calculation uses operators everywhere (for example, in the very notion of a Bogoliubov transformation) already necessitates $\hbar$ to be present. Of course, Hawking's units hide this fact.
As for the Bolztmann context, you said

Without the notion of temperature, $k_B$ seems unrelated to such calculations [...]

This statement is correct and actually applies to every expression in Physics that involves $k_B$, not only the Hawking temperature. The sole physical meaning of $k_B$ is to serve as a conversion factor between energy scales and more conventional temperature scales. The reason $k_B$ appears in the expression—actually, in any expression—is just so you can read the temperature in Kelvin. Temperature could just as well be expressed, e.g., in Joules or in your favorite unit of energy. The Wikipedia page for the Boltzmann constant seems to mention a bit about this. Notice also that in every physical equation written in the SI in which temperature appears it is accompanied by the Boltzmann constant (sometimes, hidden in another constant, such as the molar gas constant, which is just the Boltzmann constant times Avogadro's number).
