How to get inserted record ID and insert it to foreign key table in SQL?

Here is the sample code:

CREATE PROCEDURE [dbo].[AddRecord]
@Param1 int,
@Param2 varchar(50)

AS
BEGIN
— SET NOCOUNT ON added to prevent extra result sets from
— interfering with SELECT statements.
SET NOCOUNT ON;

DECLARE @InsertedID as int

INSERT INTO PKTable ( Column1, Column2 )
VALUES ( @Param1, @Param2 )

SELECT @InsertedID = @@IDENTITY

INSERT INTO FKTable ( ForeignKeyID )
VALUES ( @InsertedID )
END