For the case of a particle in a potential, $\hat{\mathcal H} = \frac{\hat{p}^2}{2m}+V({\mathbf x})$, let an arbitrary wavefunction be written in the form
$$\Psi({\mathbf{x}},t) = \sqrt{\rho({\mathbf x},t)}\exp\left(i\frac{S({\mathbf x},t)}{\hbar}\right)\text{,}$$
where $\rho \geq 0$. Then it becomes a simple calculus exercise to derive:
$$\Psi^*\hat{\mathcal{H}}\Psi = \rho\left[\frac{1}{2m}\left|\nabla S({\mathbf x},t)\right|^2 + V(\mathbf{x})\right] + \mathcal{O}(\hbar)\text{,}$$
where I'm omitting terms that have at least one power of $\hbar$. Since $\langle\Psi|\hat{\mathcal H}|\Psi\rangle$ is the spatial integral of this quantity, integrating this instead is what we want for an $\hbar\to 0$ limit of energy.
[Edit] As @Ruslan says, the wavefunction would have to oscillate faster to have a kinetic term. In the above, keeping $S$ independent of $\hbar$ means increasing the phase at the same proportion that $\hbar$ is lowered.
Additionally, substituting this form for $\Psi$ into the Schrödinger equation gives, after similarly dropping $\mathcal{O}(\hbar)$ terms,
$$\underbrace{\frac{1}{2m}\left|\nabla S({\mathbf x},t)\right|^2 + V(\mathbf{x})}_{{\mathcal H}_\text{classical}} + \frac{\partial S({\mathbf x},t)}{\partial t} = 0\text{,}$$
which is the classical Hamilton-Jacobi equation with $S$ taking the role of the Hamilton's principal function.