How to print a line with a variable in it? I want to know if there is a way to write like in C programming:

  printf("the num is %d",num);  


I know that to print a line or a variable the command will be Serial.println
when I write:

 Serial.println("the num is %d",num);   


It's not working.

Is there a way to write it in just one line?
I use:

Serial.println("The temperature is " + String(temperature) + " degrees C");


With this solution you can't format the variable's value but I find this quick and dirty for debug messages.