To print to Console you can use print() and dump() Functions.
Inside the String you can reference Properties by using Variable name.
Example
public class Test {
public static void main(String[] args) {
String name = "John";
System.out.println("Hello " + name);
}
}