When you pass a value to a function, the variable name is not passed to it, so it is impossible to print the name of the variable. It's not even possible to get the names of the parameters, for details, see Getting method parameter names.
The closest you can do is use a struct as the parameter type, and you can get and print the name of the fields (using reflection). Or use a map, and pass the variable name as the key.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…