You can do:
x = 10
println("$(typeof(x)) $x")
or just:
@show x
which prints:
x = 10
(showing both the name, value, and from the REPL you'll still see the type if you want with typeof(x)
)
If you want type + value in one string:
println("$(typeof(x)) $(x)")
Example output:
Int64 10