Printing the temperature of a device in ngspice?
But the thing is, is there a command for ngspice to print the
  temperature of certain a device?


How can any spice tool know what the thermal conductivity of the device is to ambient. Temperature is not directly related to power - it is the result of power crossing from a hot object to an object of different temperature - that boundary material that exists between the two objects has a thermal conductivity (a material constant measured in watts per metre-kelvin) and does spice know what medium exists between your resistor and ambient temperature?

Sure, spice will know about the ambient temperature. For instance, micro-cap defaults to 27 degC but it cannot know about the material surrounding the resistor.

That material is usually quite complex too - it's circulating air and a thermal mass of copper (maybe) and PCB material. The dynamics are also quite significant because not only is there thermal conductivity to consider but the specific heat capacity of the material. The specific heat capacity is in units of is joule per kelvin per kilogram and tells you how much something warms with a heat energy input. You would use it for dynamic temperature estimations before thermal conductivity numbers kick in to play.

Then, what would spice make of the internal junction temperature of this device or that device or the shape of your resistor.

No, you have to calculate this yourself but, once you have established the thermal resistance of the device in its surroundings you can factor that in the any spice calculation.