How to display a value stored in a function in functions.php in WP template

Hi

There is a value in a PHP variable that I am using in a function in functions.php in a custom PHP theme

Now I wish to display this value- either on screen or in console or log(just to check its value)

How do I do this? Since the value is used in functions.php I cant simply use javascript to display it in a web page.

Yours sincerely,
Arvind.