A simple evaluation of a theta value, the Kronecker limit formula and a formula of Ramanujan